|
applyCssBrush
|
Applies any type of brush to a specified property.
|
|
applySvgBrush
|
Applies any type of brush to a specified property on an SVG element, creating an element if necessary and assigning IDs.
|
|
bezierIntersect
|
Determines the point at which two specified Bézier segments intersect rounded to the nearest integer.
|
|
copySvgBrush
|
Copies the applied value or def element reference from a brush from one SVG element to another.
|
|
correctError
|
Returns the value of a number rounded to eliminate rounding error while accommodating a standard
amount of precision for rendering to pixels.
|
|
correctErrorFloor
|
Returns the value of a number truncated after a number of digits to eliminate rounding error while
accommodating a standard amount of precision for rendering to pixels.
|
|
createBrushDef
|
Creates an SVG element to represent a brush for an element with the specified width and height.
|
|
createRotationMatrix
|
Creates an affine transform matrix for a rotation transform.
|
|
createScaleMatrix
|
Creates an affine transform matrix for a scale transform.
|
|
createShearMatrix
|
Creates an affine transform matrix for a shear transform.
|
|
createTranslationMatrix
|
Creates an affine transform matrix for a translation.
|
|
distance
|
Determines the distance between two points regardless of the angle of their connecting line.
|
|
divideBezierSegment
|
Divides a Bézier segment defined by the specified points into two equivalent segments at the specified parameter t along the segment.
|
|
getAbsoluteTransformMatrix
|
Calculates the absolute transform matrix given a relative transform matrix and center point
relative to bounds.
|
|
getAverageColor
|
Gets a color that represents the average of all colors defined as part of the brush.
|
|
getBoundingBox
|
Gets the bounding box that contains every point in points.
|
|
getCanPathSegmentsIndirectlyOverlap
|
Gets a value indicating whether two path segments that do not directly overlap can be rendered using the same path there is
any continuous chain of overlapping path segments between them without changing the appearance of z-order.
|
|
getCanPathSegmentsOverlap
|
Gets a value indicating whether two overlapping path segments each with the specified brushes can be rendered using the same path.
|
|
getContrastingColor
|
Tests the background color ignoring transparency against readability with either a light or dark foreground (assuming white or black).
|
|
getModifiedBrush
|
Gets a brush with colors modified by the specified percentages.
|
|
getSplineBezierControlPoints
|
Gets the control points needed for a Bézier line segment to display a cardinal spline
connecting two points with the specified tension.
|
|
intersect
|
Returns the intersection of two rectangles. If
no intersection exists the left, right, top, and bottom
properties are undefined.
|
|
isInEllipse
|
Gets a value indicating whether the specified point is at or within the bounds of an ellipse.
|
|
isXYRequiredForSvgBrush
|
Gets a value indicating whether the specified brush requires the horizontal and vertical position
of the SVG element to which it's applied within its coordinate space if not 100%.
|
|
lineIntersect
|
Gets the point where the two specified line segments intersect.
|
|
matrixMultiply
|
Multiplies two affine transform matrices to produce a single transform that represents
the application of matrix2 followed by matrix1.
|
|
multiplyDashType
|
Multiplies a dash type value by the stroke width so that the dash pattern is rendered relative to the width.
|
|
roundPathPosition
|
Rounds a position used in a path to ensure the rendered shape conforms to pixel boundaries (no anti-aliasing)
where there are right angles.
|
|
toCartesianPoint
|
Converts polar coordinates to cartesian coordinates.
|
|
toPolarPoint
|
Converts cartesian coordinates to polar coordinates.
|
|
toSVGMatrix
|
Returns the SVG string representation of an affine transform.
|
|
transform
|
Applies an affine transform to a point.
|
|
transformBounds
|
Applies an affine transform to a bounds and returns the coordinates of the top-left, top-right,
bottom-left, and bottom-right corners as arrays containing the X and Y coordinates, respectively.
|
|
transformBoundsAligned
|
Applies an affine transform to a bounds and returns the axis-aligned bounding box which contains
the transformed bounds.
|